import request from '@/utils/request'

// 查询安全检查指标列表
export function listLabsafetyCheckIndex(query) {
  return request({
    url: '/labsafety/labsafetyCheckIndex/list',
    method: 'get',
    params: query
  })
}

// 查询安全检查指标详细
export function getLabsafetyCheckIndex(id) {
  return request({
    url: '/labsafety/labsafetyCheckIndex/' + id,
    method: 'get'
  })
}

// 新增安全检查指标
export function addLabsafetyCheckIndex(data) {
  return request({
    url: '/labsafety/labsafetyCheckIndex',
    method: 'post',
    data: data
  })
}

// 修改安全检查指标
export function updateLabsafetyCheckIndex(data) {
  return request({
    url: '/labsafety/labsafetyCheckIndex',
    method: 'put',
    data: data
  })
}

// 删除安全检查指标
export function delLabsafetyCheckIndex(id) {
  return request({
    url: '/labsafety/labsafetyCheckIndex/' + id,
    method: 'delete'
  })
}

// 导出安全检查指标
export function exportLabsafetyCheckIndex(query) {
  return request({
    url: '/labsafety/labsafetyCheckIndex/export',
    method: 'get',
    params: query
  })
}